package com.xuecheng.feignclient;

import com.xuecheng.model.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 媒资管理服务远程接口
 */
@FeignClient(value = "media-api", fallbackFactory = MediaServiceClientFallbackFactory.class)
@RequestMapping("/media")
public interface MediaServiceClient {
	
	@GetMapping("/open/preview/{mediaId}")
	RestResponse<String> getPlayUrlByMediaId(@PathVariable("mediaId") String mediaId);
	
}
